﻿using System;
using System.Collections.Generic;
using System.Text;
using Cashier_DAO.db;
using System.Data.Common;
using Cashier_Model;

namespace Cashier_DAO
{
    public class GuidDAO: DAOFactory
    {
        /// <summary>
        /// 新增GUID
        /// </summary>
        /// <param name="conn"></param>
        /// <param name="guid"></param>
        /// <returns></returns>
        public long InsertGuid(DbConnection conn, SysGuid guid)
        {
            long id = 0;
            try
            {
                id = (Int64)this.Insert(conn, guid);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return id;
        }
    }
}
